import { axios } from '@/utils/request'

/**
 * api接口列表
 */
const api = {
  getList: '/project.Recruit/getList',
  detail: '/project.Recruit/detail',
  add: '/project.Recruit/add',
  edit: '/project.Recruit/edit',
  del: '/project.Recruit/del',
  illnessList: '/project.Manage/illnessList',
  hospitalList: '/project.Manage/hospitalList',
  getInfo: '/project.Recruit/getInfo',
}

/**
 * 地区医院列表记录
 */
export function getList(params) {
  return axios({
    url: api.getList,
    method: 'get',
    params
  })
}

export function illnessList(params) {
  return axios({
    url: api.illnessList,
    method: 'get',
    params
  })
}

export function hospitalList(params) {
  return axios({
    url: api.hospitalList,
    method: 'get',
    params
  })
}

// 详情
export function detail(params) {
  return axios({
    url: api.detail,
    method: 'get',
    params
  })
}

export function add(params) {
  return axios({
    url: api.add,
    method: 'post',
    params
  })
}

export function edit(params) {
  return axios({
    url: api.edit,
    method: 'post',
    params
  })
}

export function getInfo(params) {
  return axios({
    url: api.getInfo,
    method: 'post',
    params
  })
}

export function deleted(params) {
  return axios({
    url: api.del,
    method: 'post',
    params
  })
}
